//
// Created on 2024-9-17.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int modbusInitConnect(const char* ip,int port);
int closeConnect();
uint16_t  *receiveData();
int sendData(int reg_addr, int value);